import { Component } from '@angular/core';
import { DomSanitizer, SafeValue, SafeHtml } from '@angular/platform-browser'
@Component({
  selector: 'app-test',
  templateUrl: './test.component.html',
  styleUrls: ['./test.component.css']
})
export class TestComponent {
  array = [1, 2, 3, 4];
  effect = 'scrollx';
  path;
  constructor(private sanitizer: DomSanitizer){

    // let url=this.sanitizer.sanitize(SecurityContext.RESOURCE_URL,"assets/games/xiangqi/index.html");
    // console.log(url)
    this.path=this.sanitizer.bypassSecurityTrustResourceUrl('https://www.360kuai.com/mob/subject/400?sign=ex_c07b0449')
    console.log(this.path)
    // this.xq=this.sanitizer.bypassSecurityTrustHtml('https://www.360kuai.com/mob/subject/400?sign=ex_c07b0449');
    // this.xq=this.sanitizer.bypassSecurityTrustUrl("asserts/games/xiangqi/index.html");
  }
}
